﻿@{
    Layout = "_IndexLayout";
    var plugName = @news.admin.cyt369.com.Areas.NewsAdmin.Models.PlugName.Name;
    var id = this.Context.Request.Query["ID"];
    var home_home_sm = PageViewModel.ControlID(this, "home_home_sm", plugName, shortName: false);
    var load_home_home_sm = PageViewModel.PageFunctionName(this, "load_home_home_sm", plugName);
}

@section LeftPanel{
    <div id="@home_home_sm" style='width:100%'></div>
    <script type="text/javascript">
        function @load_home_home_sm () {
            $.ajax({
                url: "~/Home/GetSubMenus/" + @id,
                success: function (menus) {
                    var p = $("#@home_home_sm");
                    p.html("");
                    var sm = $(MySideMenu(menus));
                    sm.appendTo(p);
                    BindMySideMenu(sm);
                }
            });
        }

        $(document).ready(function () {
            @load_home_home_sm ();
        });
    </script>
}

@section ContentPanel{
    <span>this is home content panel</span>
}